Skip to content

Method: applyTo(FzgState, FzgPlayer)

1: package de.fhdw.gaming.ipspiel23.freizeitgestaltung.move.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel23.freizeitgestaltung.domain.FzgPlayer;
5: import de.fhdw.gaming.ipspiel23.freizeitgestaltung.domain.FzgState;
6: import de.fhdw.gaming.ipspiel23.freizeitgestaltung.move.AnswerOptions;
7:
8: /**
9: * Implementation of answer: Football.
10: *
11: */
12: public class FootballAnswer extends AbstractAnswer {
13:
14: @Override
15: public void applyTo(final FzgState state, final FzgPlayer player) throws GameException {
16: player.setAnswer(AnswerOptions.FOOTBALL);
17: }
18:
19: @Override
20: public String toString() {
21: return "Saying Football";
22: }
23: }